package com.newblog2_0.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.newblog2_0.mapper.UserMapper;
import com.newblog2_0.model.ArticleInfo;
import com.newblog2_0.model.UserInfo;
import com.newblog2_0.model.vo.UserInfoVo;
import com.newblog2_0.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2023-12-16
 * Time:15:14
 * Text：
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserInfo> implements UserService {
   @Autowired
   private  UserMapper userMapper;
    @Override
    public List<UserInfo> getUserAll() {
        return userMapper.getUserAll();
    }

    @Override
    public UserInfoVo getUser(int uId) {
        return userMapper.getUser(uId);
    }

    @Override
    public int changepd(String uName, String password2) {
        return  userMapper.changepd(uName, password2);
    }

    @Override
    public int changeph(String photo, String uName) {
      return  userMapper.changeph(photo,uName);
    }
}
